var User = require('../models/User');
var constant = require('./constant');
module.exports = function(nev){
	nev.configure({
	    verificationURL: constant.domain + '/email-verification/${URL}',
	    persistentUserModel: User,

	    transportOptions: {
	        service: constant.emailService,
	        auth: {
	            user: constant.emailAccount,
	            pass: constant.emailPwd
	        }
	    },
	    verifyMailOptions: {
	        from: 'GLNote<glnote@glnote.com>',
	        subject: 'Please confirm account',
	        html: 'Click the following link to confirm your account:</p><p>${URL}</p>',
	        text: 'Please confirm your account by clicking the following link: ${URL}'
	    },
	    sendConfirmationEmail: false
	});

	nev.generateTempUserModel(User);
};